<div class="request-popup popup-wrapper">
	<div class="popup items-show-popup admin">
		<div class="list">
			<div class="available-items">
				@foreach($requestItems as $requestItem)
					<div class="item" id="item_{{$requestItem->pk}}">
						<div class="info">
							<div class="reference"><span class="label">Referencia: </span>{{$requestItem->item->reference}}</div>
							<div class="name"><span class="label">Nombre: </span>{{$requestItem->item->name}}</div>
							<div class="price"><span class="label">Precio c/u: </span>{{$requestItem->item->formattedPrice()}}</div>
							<div class="price"><span class="label">Cantidad en stock: </span>{{$requestItem->item->amount}}</div>
							<div class="request"><span class="label">Cantidad: </span><input type="text" value="{{$requestItem->amount}}" class="amount" /></div>
							<div class="comment"><span class="label">Comentario: </span><input type="text" value="{{$requestItem->comment}}" class="comment" /></div>
							<div class="status">
								<span class="label">Estado: </span>
								<select class="request-type">
								@foreach(ItemRequestItemStatus::all() as $status)
									<option value="{{$status->pk}}" {{$status->pk == $requestItem->request_item_status_fk ? "selected":""}}>{{$status->description}}</option>
								@endforeach
								</select>
							</div>
						</div>
						<div class="picture">
							<img src="{{$requestItem->item->image_url}}" />
						</div>
					</div>
				@endforeach
			</div>
		</div>
		<div class="options">
			<div><a href="#" class="cancel-edit-btn">Cerrar</a></div>
			<div><a href="#" class="btn resolve">Resolver</a></div>
		</div>
	</div>
</div>